package com.scf.fruit.enums;

/**
 * @author : 孙超飞
 * @title :
 * @description :
 * @copyright :润投科技
 * @date : 2018-05-21 9:06
 */

public enum ExceptionCodeEnum {
    EX_SUCCESS("000000","成功"),
    EX_ORDER_ERROR("000100","订单异常"),
    EX_ORDER_SAVE_REPEAT("000101","订单重复提交"),
    EX_WX_CODE_ERROR("000200","code无效"),
    EX_ADDRESS_ERROR("000300","地址异常"),
    EX_ADDRESS_EXIST_ERROR("000301","地址已存在"),
    EX_PARAM_ERROR("000400","参数异常"),
    EX_COMMODITY_ERROR("000500","商品异常"),
    EX_USER_ERROR("000600","用户异常"),
    EX_USER_EXIST_ERROR("000601","用户已存在"),
    EX_NOT_PERMISSION("000900","权限不足")
    ;

    ExceptionCodeEnum(String value, String msg) {
        this.value = value;
        this.msg = msg;
    }

    private String value;
    private String msg;

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
